package com.qys.livesMall.anchor.model.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 主播访问记录VO
 *
 * @author makejava
 * @since 2023-07-13 16:41:55
 */
@Data
@Schema(name = "AnchorAccessRecordVO", description = "主播访问记录VO")
public class AnchorAccessRecordVO {

    @JsonSerialize(using = ToStringSerializer.class)
    @Schema(description = "用户ID")
    private Long userId;

    @Schema(description = "用户名字")
    private String userName;

    @Schema(description = "用户头像")
    private String userAvatar;

    @Schema(description = "附加信息")
    private String data;

    @JsonFormat(shape= JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss")
    @Schema(description = "访问时间")
    private LocalDateTime createTime;
}


